import request from "@/utils/request";

// 查询请假管理列表
export function listCldLeave(query) {
  return request({
    url: "/cld/CldLeave/list",
    method: "get",
    params: query,
  });
}

// 查询请假管理详细
export function getCldLeave(leaveId) {
  return request({
    url: "/cld/CldLeave/" + leaveId,
    method: "get",
  });
}

// 新增请假管理
export function addCldLeave(data) {
  return request({
    url: "/cld/CldLeave",
    method: "post",
    data: data,
  });
}

// 修改请假管理
export function updateCldLeave(data) {
  return request({
    url: "/cld/CldLeave",
    method: "put",
    data: data,
  });
}

// 修改请假管理
export function auditCldLeave(data) {
  return request({
    url: "/cld/CldLeave/audit",
    method: "put",
    data: data,
  });
}

// 删除请假管理
export function delCldLeave(leaveId) {
  return request({
    url: "/cld/CldLeave/" + leaveId,
    method: "delete",
  });
}
